#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>


int uninit_val;
int init_val = 100;

int main()
{
    pid_t pid =fork();
    if(pid == 0)//child
    {
        init_val = 200;
        printf("child Pid:%d ppid:%d init_val:%d &init_val:%p\n",getpid(),getppid(),init_val,&init_val);
    }
    else//father
    {
        printf("father Pid:%d ppid:%d init_val:%d &init_val:%p\n",getpid(),getppid(),init_val,&init_val);
        sleep(2);
    }
    return 0;
}
